extends TextureRect

var freq = 0.3
var phase = 0
var active = true
var amplitude = 15

func _process(delta):
	if active:
		rect_position = Vector2(0,amplitude*sin(phase))
		phase=wrapf(phase+delta*6.28*freq,0,6.28)
